//
//  NetworkActivityIndicator.m
//  YuiKe
//
//  Created by yuike5 yuike5 on 11-10-17.
//  Copyright 2011年 yuike. All rights reserved.
//

#import "NetworkActivityIndicator.h"

@implementation NetworkActivityIndicator

- (id)init
{
    self = [super init];
    if (self) {
        // Initialization code here.
    }
    
    return self;
}


static NSInteger cnt_NetworkActivityIndicator = 0;
+(void) onNetworkActivityIndicator
{
 @synchronized(self) {
    cnt_NetworkActivityIndicator++;
    if (cnt_NetworkActivityIndicator == 1) {
//        UIApplication *application = [UIApplication sharedApplication];
//        application.networkActivityIndicatorVisible = YES;
    }
 }
}
+(void)offNetworkActivityIndicator
{
  @synchronized(self) {
    cnt_NetworkActivityIndicator--;
    if (cnt_NetworkActivityIndicator == 0) {
//        UIApplication *application = [UIApplication sharedApplication];
//        application.networkActivityIndicatorVisible = NO;
    }
  }
}

@end
